<template>
  <router-view />
</template>
<script>
export default {
  created() {
    // this.SetLocalStorage();
  },
  methods: {
    SetLocalStorage() {
      const tabs = localStorage.getItem("tabs");
      const routeIsNull = this.$route.fullPath.split("/");
      const menu = localStorage.getItem("menu");
      if (tabs === null) localStorage.setItem("tabs", "menuitem");
      if (routeIsNull[1] === " " || routeIsNull[1] === "") {
        if (menu === null) {
          localStorage.setItem("menu", "623acf7b639ab1b33452963e");
          this.$router.push("/home/623acf7b639ab1b33452963e");
        } else if (menu === "manage") {
          this.$router.push(menu);
        } else {
          this.$router.push("/home/" + menu);
        }
      }
    },
  },
};
</script>
